package com.powernode;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @Author 梁卓
 * @Version 1.0
 * @ClassName ManagerServiceApplication
 * @Description 系统管理模块启动类
 * @Date 2024/07/21 20:05
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableCaching
public class ManagerServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(ManagerServiceApplication.class,args);
    }

    /**
     * 密码加密
     * @return 密文
     */
    @Bean
    public BCryptPasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }
}
